<!DOCTYPE html>
<html lang="zh">
  <head>

    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>个人中心 | soulmate花店</title>
    <link href="./css/public.css" rel="stylesheet"/>
    <link href="./css/dashboard.css" rel="stylesheet"/>
    <style>th{text-align:right;}       </style>
  </head>
  <body>
  <?php
  session_start();
  if(empty($_SESSION['user'])){
  echo "<script language='javascript'>alert('您未登录，是否前往登录！')</script>";
  setcookie('message',"请登录");
      echo "<script>window.location='checkrose.php';</script>";
  }
  ?>
    <div class="header">
      <div class="logo">
        <div class="logo-content"><a class="logo-link" href="index.php" title="前往首页">Soulmate</a></div>
      </div>
      <div class="nav">
        <ul>
          <li><a class="nav-link" href="index.php" title="title">首页</a></li>
          <li><a class="nav-link" href="flower.php" title="title">分类浏览</a></li>
          <li class="active"><a class="nav-link" href="homeCustomer.php" title="title">个人中心</a></li>
          <li><a class="nav-link" href="cart.php" title="title">购物车</a></li>
          <li><a class="nav-link" href="contact.php" title="title">联系方式</a></li>
            <?php
            if(!empty($_SESSION['user'])){
                echo "<li><a class=\"nav-link\" href=\"#\" title=\"title\">".$_SESSION['user']."</a></li>";
                echo " <li><a class=\"nav-link\" href=\"destorySession.php\" title=\"title\">退出登录</a></li>";
            }else{
                ?>
                <li><a class="nav-link" href="login.php" title="title">登录</a></li>
                <li><a class="nav-link" href="regist.php" title="title">注册</a></li>
            <?php }?>
        </ul>
      </div>
    </div>
    <div class="main-wrapper">
      <div class="main">
        <div class="left">
          <h3 class="title">个人中心</h3>
          <ul>
            <li><a href="homeAdminOrders.php">管理订单</a></li>
            <li><a href="homeAdminProtypes.php">品种管理</a></li>
            <li><a href="homeAdminTypes.php">类别管理</a></li>
            <li><a href="homeAdminItems.php">商品管理</a></li>
            <li class="active"><a href="homeAdminProfile.php">店铺信息</a></li>
            <li><a href="homeAdminSetting.php">账户设置</a></li>
          </ul>
        </div>
        <div class="right">
<!--          <from action="saveProfile.php" method="post">-->
            <table>
              <tr>
                <th>联系电话：</th>
                <td> 
                  <input type="text" name="phone" value="1888888888"/>
                </td>
              </tr>
              <tr>
                <th>微信：</th>
                <td> 
                  <input type="text" name="weixin" value="wxsoulmate073"/>
                </td>
              </tr>
              <tr>
                <th>QQ：</th>
                <td>
                  <input type="text" name="qq" value="782423535"/>
                </td>
              </tr>
              <tr>
                <th>新浪微博：</th>
                <td> 
                  <input type="text" name="weibo" value="soulmate花店"/>
                </td>
              </tr>
              <tr>
                <th>详细地址：</th>
                <td> 
                  <input type="text" name="location" value="重庆市南岸区崇文路520号"/>
                </td>
              </tr>
            </table>
<!--            <p><a class="btn primary" id="profile-save-action" href="javascript:;"> <span class="text">保存</span></a>-->
<!--              <input type="submit" id="true-submit" hidden="hidden"/>-->
<!--            </p>-->
<!--          </from>-->
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="footer-logo"><span class="font-flower">Soulmate</span></div>
      <div class="footer-info">
        <p>致力于为平凡的生活带来新色彩.<br>详细地址：重庆市南岸区崇文路520号<br>联系电话：1888888888 <span class="copyright"> &copy;2017 soulmate花店 All rights reserved</span></p>
      </div>
    </div>
    <script src="./js/jq/jquery.min.js"></script>
    <script>
      $("#profile-save-action").click(function(){
        $("#true-submit").click()
      })
                
        
    </script>
  </body>
</html>